import http from '@/plugins/axios'

export function getToday(data) {
  return http({
    method: 'POST',
    url: '/mainPage/today',
    data
  })
}

export function getRenewAlert(data) {
  return http({
    method: 'POST',
    url: '/mainPage/renewAlert',
    data
  })
}

export function getAssignAlert() {
  return http({
    method: 'POST',
    url: '/mainPage/assignAlert'
  })
}

export function getCusSer(data) {
  return http({
    method: 'POST',
    url: '/mainPage/cusSer',
    data
  })
}

export function getTodayStar(data) {
  return http({
    method: 'POST',
    url: '/mainPage/todayStar',
    data
  })
}

export function getAssignAlertDetail(data) {
  return http({
    method: 'POST',
    url: '/mainPage/assignAlertDetail',
    data: data.condition
  }).then(list => {
    return {
      list
    }
  })
}
